<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>What is zhis sha?</title>
<script type="text/javascript" src="../static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="../static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="../static/easyui/themes/icon.css">
<link rel="stylesheet" href="../static/easyui/themes/metro-red/easyui.css">

<style type="text/css">

</style>
<script type="text/javascript">

</script>
</head>
<body>
	<link rel="stylesheet" href="../static/zyc/css/emp-table.css?<%=Math.random()%>">
	<link rel="stylesheet" href="../static/oyp/css/recruit_apply.css?<%=Math.random()%>">
   	<script type="text/javascript">
		$(function(){
			//初始化表格
			$('#emptable').datagrid({
			    url:'emp_table',
			    columns:[[
					{field:'empid',width:120,title:'姓名id',align:'center',hidden:true},
					{field:'empname',width:120,title:'姓名',align:'center'},
					{field:'position',width:160,title:'职位',align:'center'},
					{field:'sector',width:160,title:'部门',align:'center'},
					{field:'mintame',width:160,title:'最近登录时间',align:'center',
						formatter: function(value,row,index){
							if(!isNaN(value)){
								return "";
							}
							return new Date(value).getFullYear() + '-' + (new Date(value).getMonth() + 1) + '-' + new Date(value).getDate();
						}
					},
					{field:'idcard',width:170,title:'身份证',align:'center'},
					{field:'sex',width:80,title:'性别',title:'操作',align:'center'},
					{field:'caozuo',width:140,title:'操作',align:'center',formatter:chaxunemp}
			    ]],
			    pagination:true,
			    pageNumber:1,
			    pageSize:9,
			    pageList:[5,9]
			});
		});
		function chaxunemp(value, row, index) {
			return "<span onclick='emp_ta("+row['empid']+")' class='easyui-linkbutton'>详情查询</span>";
		}
		function emp_ta(i){
			var text = '基础资料';
			var url = 'zyc/emp-det';
			var data = 'id='+i;
			adds(text,url,data);
		}
	</script>
	<div class="full_scr bj_home">
		<div class="bj_img" style="background-image:${hopa.perPmsZts[0].ztback}"></div>
		<div class="bj_txt">
			<div class="bj_small bj_s_w7">
				<div class="emptable_box">
			       <div class="topbox">
			           <div class="sousuobox">
			                 <span class="title_zhong text_style_title">员工查询</span>
			                 <input type="text" style="width:180px;height:30px;font-size:20px;">
			                 <input type="button" value="搜索" class="sousuoan">
			           </div>
			       </div>
			       <div class="biaobox">
			           <table id="emptable" class="easyui-datagrid" data-options="width:1030,height:380,fitColumns:true">
			           </table>
			       </div>
			    </div>
			</div>
		</div>
	</div>
</body>
</html>